#ifndef __SCNS_ILI9341_H__
#define __SCNS_ILI9341_H__

#include "ScnsConfig.h"

#if defined(SCNS_ILI9341_ENABLE)&&SCNS_ILI9341_ENABLE==1

#include "ScnsBspIli9341.h"

#include "ScnsYing.h"
#include "ScnsLcd.h"

typedef enum
{
    SCNS_ILI9341_STATUS_OK=SCNS_YING_STATUS_OK,
    SCNS_ILI9341_STATUS_BSP_FAILED=SCNS_YING_STATUS_BSP_FAILED,
    SCNS_ILI9341_STATUS_FAILED=SCNS_YING_STATUS_FAILED,
    SCNS_ILI9341_STATUS_TIME_OUT=SCNS_YING_STATUS_TIME_OUT,
}ScnsIli9341Status;

extern ScnsIli9341Status scnsIli9341Init(ScnsIli9341Enum iliN);
extern void scnsIli9341WriteColorRGB565(ScnsIli9341Enum iliN,uint16 color);
extern uint8 scnsIli9341Flush(ScnsIli9341Enum iliN,Point plu,Point prd,ScnsLcdColor buf[],uint32 n,uint8 bufId);
extern uint8 scnsIli9341SetAddress(ScnsIli9341Enum iliN,Point plu,Point prd);
extern Point scnsIli9341GetBorder(ScnsIli9341Enum iliN);
extern void scnsIli9341SetBackgroundLight(ScnsIli9341Enum iliN,ScnsLcdBackgroundLightStatus status);
#endif
#endif
